Fixed errors in custom roles tests