integrate Karma and Jasmine for a proper testing environment (involved some monkey patching)