Add unit tests for HDFS backend