Fix broken unittest build (auto ref seems to be broken)