refactored header view specs to karma mocha specs