Comparison of results from DNS of bubbly flows with a two-fluid model for two-dimensional laminar flows