add test case for enums