[Codeplex issue #1997]: EnumProperty/$value/something should report error
that $value must be the last segment.

The error message should be improved in the ODL 6.5. This fix is to add a
test case for validataion.