unit tests for enum support