SFTP unit test updates

Includes the unit tests from https://github.com/phpseclib/phpseclib/pull/341