Fix binary search tree for test runner