added karma support for testing