Tests for role edition and domain code to make them pass