Added test for transaction events