fixed query test error