fixed test and added vertex delegate