refactor(dialog): convert materialDialog to use interimElement
test(dialog): convert dialog tests to use new interimElement API