fix karma tests
Merge pull request #707 from maraoz/fix/karma-tests

fix karma tests