Make waitFor in tests work even when killing the last node of the cluster