Add test for ExtractProto with enum.

DATAENG-379 doesn't need fixing.
Merge pull request #7 from afavaro/bug379

Add test for ExtractProto with enum.