More tests

Adds tests for hooks.