added mocked test