Mocking requirejs for tests.