Testing multi-dimensional array