Let's throw this in its own module. `tests/addons/restmail.js`?