Fix expected exit code in self-test for cordova