added a Karma test for the dialog directive
modified the dialog directive to assign an id to each button