Test exec and exit successfully