added transaction to test_query