I don't know yet how to test that part… I plan to use https://github.com/pgte/nock if no other feedback.