Added Unit testing for arrays.