[WIP] Add avl tests

Adding AVL tests here.
The parameter `cfg` must not be NULL.