Added test for the delegate/constructor bug.