added test snippets,