Added test for switching closure delegates