Add tests to smartsnippet caching restore.