BZ 790363: test for cancelling subprocesses
test showing bug BZ813183