add tests for ranking tree