(tests) Fix all tests which use readFile()

BufferedOutputStream is not needed in readFile(), and cause issues in
String returned