Enabled more tests for tx event handlers

so that more is tested, also afterCommit(). Some issues was exposed which
were also fixed.
Merge pull request #1717 from tinwelint/2.0-more-tx-eh-tets

Enabled more tests for tx event handlers