Fix bug #21467: end iterator deref when launching test scenario