I guess the best place for the tests would be a file like `api.js` (testing the external API).