Apply sinon mocks to nodejs require calls