Added Karma testing support