Karma JS testing:
* documented karma configuration
* made alerts service spec work