Add test for handling SIGCHLD