Some basic unit tests, will expand tomorrow.