Tests to thread modes (background/foreground stream casting)