Remove extra `int main`s from unit tests.