Add more tests for array operations.