added tests for deleting a template