testing dismissing the modal