added test for delegation