TST: don't compare inferred index freq on some tests as it may not be preserved
     (which is correct), (GH6093)
Merge pull request #6097 from jreback/hdf_fix

TST: don't compare inferred index freq on some tests as it may not be preserved (which is correct)