Improve tests; add StreamUtils class with streamToString method