instead of creating inline the stub, could we have something more compact, clean and reusable like

```js
var stub = mozIccManagerStub([1]);

function mozIccManagerStub(nullIds) {
  return sinon.stub(navigator.mozIccManager, 'getIccById', outFunction.bind(null, nullIds));
}

function outFunction(nullIds, id) {
  if(nullIds.indexOf(id) !== -1) {
   return null;
 }

return {
            'iccInfo': {
              'iccid': id
            }
 };

}

```