fixed REST tests