add test for delegation tracing