Perhaps this should be decorated onto the client object like the other helpers here https://github.com/mozilla-b2g/gaia/blob/master/shared/test/integration/setup.js ?