fixed unit tests

fixed unit tests concerning the switch of IdType from string to enum
#1