Fix test : add time.sleep