hadoopcompatibility: Refactored tests.