INCR to v3.9.42
Added test using StreamWriter