add tests for enum