Change unittest from writing output to concatening to an array and checking the content
Merge pull request #2480 from MetaLang/tee-unittest-fix

Change unittest from writing output to concatening to an array and checking content