add delegate tests