fixing unittests for karma-requirejs