Bug 986268 - Use stub to replace spy to avoid webIDL error