Add some unit/integration tests using nock