HDFS-2856: bug fixes and add TestSaslDataTransfer.