fix broken flag ratings tests