Fix read() tests