unit tests for messageDialog directive