Enabled more tests for tx event handlers

so that more is tested, also afterCommit(). Some issues was exposed which
were also fixed.
Parse comments into a NoopApp, preventing NPE in evaluation
Merge pull request #1718 from chrisvest/comments-in-shell

Parse comments into a NoopApp, preventing NPE in evaluation
Merge pull request #1717 from tinwelint/2.0-more-tx-eh-tets

Enabled more tests for tx event handlers