Add snippets and snippet tests