Added tests for transactions and scheduled transactions