[WIP] Add avl tests

This pull request adds and fixes the avl tests
`avl_node_cnt()` actually takes a node as argument, but you are passing the tree.
If you change this to `avl_node_cnt(avl->root)` the test passes and issue #157 can be closed.
However, I experience a segfault now in another test.