Enum with custom constructor test.