Test directories

@robdodson As promised, arranged tests in separate directories. tests/ and snippets/ have parallel structure now.