add tests for tree part of related items
add more tests