query_test formatted