testing more methods of array