Add tests demonstrating premature calls to Modal callbacks.