add missing unit tests.