- also factored out makeEnumInfo, so tests don't need to touch registry - and added usage test that involves namespace