Snippets and tests