added tests for showing, hiding the modal.