Added required mocks for tests.