added test snippets
fixed snippets