code snippets test