Stream.when + test
Fix typo