changes: restructure of the code an handles custom tests for snippets now