TST: Add missing tests for loc slicing of PeriodIndex, TimedeltaIndex
While working on the tests for #27060, I found there's no test coverage for `loc` slicing of PeriodIndex and TimedeltaIndex. Added test for string and label slicing.

Someday, it may be a good idea to refactor and parameterize by Index type. But not today.