Test process exit codes with terminating signal