Fix test & return sync() in order to be able to react to the completion