SFTP: add unit test for stat cache fix