getByRestrictions test WIP