Add test case for GitHub issue #762.
Merge pull request #779 from klickverbot/enum-test

Add test case for GitHub issue #762.