fix query_test