Added Karma tests