Ensure enum works correctly with factory_girl

Regarding #656