Add some unit tests (transaction)