TestTxnCommandsForMmTable.testInsertOverwriteForPartitionedMmTable was fixed in HIVE-19084 to avoid being dependent on the order of the element returned by FileSystem.listStatus.
However the fix introduced a new bug, as now the assertion for the base directory name doesn't run for the second partition, instead it runs twice for the first one.