Fixing tests. Figured out how to read output stream in JUnit.