Enabled more tests for tx event handlers

so that more is tested, also afterCommit(). Some issues was exposed which
were also fixed.