test for empty query result