Add test for transactions