test enum persistence