Fix karma tests