add delegation test. Closes #9