Remove unused mocks from `test_typing`.