[tests] fixed: make sure sleep terminated correctly inside timeout coroutine