Fix objc_exit() and add it to tests.