Mocking tests properly.