Fix REST tests