Testing the functioning of the `read` method in dataset file reader.