Some more strictness in ancillary tests

Make sure subprocess exited with code 0
Make sure acceptor thread terminated