Added automated unit tests.