refactoring ding_wayf_get_required_attributes for test purposes
All tests green