Added more tests for array operations.