The same as StreamTest, but in Scala.