Printhooks tests

Resolves #102. Also fixes minor bug in `events` module.