Added tests for the Tree graph