test case on enum  for marshalling and reflection