tests for enums