MDL-39846 improve role assignment tests