fix karma test

fix issue #2