Reimplemented tests for stream solution