fix build error in unittests