Add unit test for transaction support.