Array test code