updated tests for Array method