Test for valid enum value