tests for enumeration/cast