removed test_max functionality. This is used in avl.c