test rb tree index