Fixed REST tests