Improve SnippetManager's tests.