[mytest] add support for dialog callback.