Updated query results validation, added testing for returned result size