add test for SnippetDetailView