Test exit() and exec()