Code for testing enum and map