fixes the problem with perceived not mocked xhr call in tests
Merge pull request #1645 from velesin/header_controller_test_fix

fixes the problem with perceived not mocked xhr call in tests