Add the event handler sample from Try to the tests
Commit markusjohnsson's fix for issue #150 regression along with test.