Add missing mock function