more tests around process_chain
added a stronger check to the timeout
added code and tests for a Stopchan on the ManagedCmd so that command can be stopped before the timeout occurs
added test to verify that pipes work correctly