making karma-commonjs work for testing