Fix Old Api tests
Switch EnumExtensions to use TypeCodes