Enumeration type and tests