Add tests for showModal and cancelled modal