Add test for code_object_role localization