(test) Remove multithread code from unittest.