add test for rbtree