Added Karma test support