adds test harness
make sure the stream ends