Test: Use bytes for MagicMocked Popen-related tests.