Fixed ubuntu unittest.