getByRestrictions test