Moved to nock for test stubs.