read array - more tests and fixes