add spec for delegation example (and correct a few bugs along the way..)