add tests for avl