rb tree test code