Added a test for the tree -> segfault :)