unit tests for tree and coverage