EnumerationException class and test