Fix karma test