add wait_for_network unittest