Don't send output from tests in process isolation when testing output

This pull request fixes #1452 

Test case to verify bug and fix included. :)