mocked controller tests