improve TestUtils when compiling against Hadoop 2.x/CDH4 YARN