Added client unit tests for modal-dialog.js