Wrote some tests for Array and SubArray.