https://github.com/mozilla-b2g/marionette-helper/blob/master/test/index_test.js#L161