Add tests for closing modals.