added tests for is_in_transaction