sample karma tests with commonjs