Fix hdfs tests

I also fixed a deprecation warning that I realized when I ran the tests.