fixed missing newlines in tree visualization + added tests for
multipletree upload