add unit test for header controller