added test for delegate storing