More comprehensive tests for hooks.