(Tests) Testing pattern for header controller and history factory complete