Fix EnumTest (part 2)
Patch: Konrad Grochowski, as part of his pull request 209