add test and doc for wait_all_children_with_timeout.