adding spec test for ReverseArray