implementation and tests for .toStream()