Add avl tests

This pull request adds and fixes the avl tests
May be removed as you only test the `malloc()` function here. (And `malloc()` does not fill the memory with `0`, so you probably end up with a failing test here anyways!