Implement some unit tests.