tested read and readAll