Add some unittests.