Added tests for snippets edit_handlers.py