Improved sftp unit tests.