unittests: bugs in r in readFile fixed