fix core unittest