Added Dialog test. Still using deprecated method.