added test example for karma