test enum singleton pattern.