correcting error in test-query