fix unit tests
define karma task for continuous integration
Merge pull request #1700 from djuretic/develop

Tests working (for continuous intregration)