NXP-12834: make tests more robust when setting rights