add delegate function examples test