update parallel magic tests with capture_output API

capture_output now grabs rich data, which changes the results to check
update parallel magics tests with 2.7 APIs
Merge pull request #4107 from minrk/parallel-magics-fix

update parallel magic tests with capture_output API