Testing enum and instantiation