Add tests demonstrating premature calls to Modal callbacks.

All the callbacks in Modal are currently being called when the page loads, rather than in response to the events they go with.