fixed mocking to avoid use clause