fixed errors in waypoint test