Printhooks tests

Resolves #102. Also fixes minor bug in `events` module that surfaced in these new tests for printhooks.