Angula Directive test using ngDialog