Add death tests

Death tests ensure that a function would terminate a process (either by
signalling or by exiting).