Improved test of array comparasion