added tests for new multi outputstream functionality