testing the snippets