Fix a bug in the enum compatibility test.

It's supposed to be broken, but not this way...