fix karma tests with mocha and requirejs
add comments