Testing closing of the modal window with a button.