Added test coverage for karma.