Add test case for delegation