Updated test for the readFromFile method in IO.java