restored mocks module for testing