Fix mdadm tests
Merge pull request #15992 from rallytime/bp-15617

Backport #15617 to 2014.7