Add unit test for array[enum]