* Use a router inside hooks rather than plain string matching * Add test for mismatched method
Add tests for hooks