test__subprocess: test for check_output()

From PR #265.
subprocess: fix check_output on Py2.6 and older

Thanks to Marc Sibson for bugreport, the test and original patch (#265).