Adding tests for hooks router
Refactoring F1Register