add karma tests
Merge branch 'dev-karma-tests'