karma tests fixed