Add missing call to patch for tests