Fixed compile error in unittest.