[CB-2235] Fixed failing FileTransfer spec test.

See [here](https://issues.apache.org/jira/browse/CB-2235) for details.