TST: add the parameter MonthEnd(2) to 2 tests with freq= 2M
xref #52064

added parametrization to 2 tests in which we pass `freq = '2M'`  to check if they work correctly not only with str, but with offsets (`MonthEnd(2)`) as well.
@MarcoGorelli, could you please take a look at this pr? 