Add client-complete-pending-command method.

This adds a wrapper around client-complete-pending command and
a test proving that it's needed when downloading multiple files