Add test for ExtractProto with enum.

DATAENG-379 doesn't need fixing.