added delegate unit test