switch test to use streams2 interface