Passing test for the header controller
Refactored source to have an initialization function