I found test to which rb tree works correctly