functional REST tests