added test for Array.reverse