tests for transactions