Fix unittest for out-of-tree.