Added tests for array read and write operations