[tests] read files in the tests file, improved os interoperability of stream test