Removed the mock function and now we test only the read-config-str function in all cases except one where we test with a real file.