Unit tests

First draft of overhaul for list.c tests
Minor changes to tree.c tests

To test: 
Run the tests. Duh.