Hook unit tests 100% coverage