add test for clearTimeout on function/awaitDelay and document it.