[Sprint: 40] XD-2342 Fix JDBCHDFS Job Password issue

* Add test-cases
* Make `xdFormatStream` more robust