fixes the problem with perceived not mocked xhr call in tests