conditional waiting tests