Add unittest for instance expansion.

This tests the case where an event overlaps the instance range and then the
instance range is expanded, so the event is added to the instance table twice.

bug 2439297
1 file changed