Added test for custom stream for printer test.