Updated tests for transaction