tests for Tree module