Refactor and test file exists
Test for correct read