Fixed karma tests