Migrating the first test over to use sinon for mocking the http request