Added a test to ensure that an error is provided when readFile fails.
Fixed test no actually testing readFile failure.