Add type annotations for `tests/unittest.py`.