Wrote beginnings of unit tests.