A tiny module to help in testing streams