Added test for new case in the array gateway