Handle enum class serialization testing correctly