Fix unreachable vertices test