nit: use `this.sinon.spy`, and you don't need to restore manually, this will be done automatically by test-agent's sinon helper (see https://github.com/mozilla-b2g/gaia/blob/master/test_apps/test-agent/common/test/sinon_helper.js)