Fixes tests after switching ConfirmDialog api.