added snippets samples and relative tests