Test stash configuration and exit code paths.