Fixed karma ui tests