QUnit plugins: fixed callbacks addition, local variables are moved into closure. Tests can be run on IE8-.