Create methods for importing and deleting topic trees

Refactor tests to use the new methods