Fixed enum to be case sensitive and made FieldType values lowercase
Added FieldTest