added enum converter and test for enum