fix fileToString; fix typos in test logging