Fixed bug in the Delegate test.