Error polyfill test and expectjs' withArgs usage