added test for enum