Replace select based on context/timer with deterministic pattern. The tests depend on timing. Thus, use synctest which provides deterministic clock updates and also speeds up test execution by skipping sleep times.