For the most part unit tests on AsyncStream are challenging because of the lack of back-pressure. AsyncChannel can get you most of the way there… but the back pressure is applied after the consumer has already started listening.
The other direction I would recommend here is to build your own AsyncSequence implementation that blocks when you send an element and inject this one only for testing. You can find some more ideas on that in here: