Add unittests.