Add example and tests for how to add a timeout to a process group.