Added test to check number of rows returned from db for subqueryload query