Add unit tests, establish automated testing.