Added karma test support