Adding tests for searching snippets