Added basic tests for transactions