subqueryload() now produces distinct subquery.
Added test to check number of rows returned from db for subqueryload query