added integration test for transactions