Add karma test support