add delegate test