test cases for arrays