Added test case for decoding enums.