Add test cases for arrays