switched back to nock for mocking tests