Dialog Factory test.