Minor fixes.
Added some test cases for AsyncTransaction.