add new assertion : assertConditionWithWait