Added unit-testy like things. Most are nearly feature complete, some need some work.