added a test to make sure that even unordered arrays will still work