add mock output stream test for pretty print