Add tests demonstrating premature calls to Modal callbacks.

Demonstrating Issue 161