Fix couple of tests to avoid using deprecated methods of MiniDFSCluster