Fix for latest Require.js
Added qunit wrapper and relevant tests