reintroducing reworked unit tests
move controller hook test to hooks unit test