test_flow: fixed Popen invokations