tests and snippets