Finished treeview tests, fixed api response