MAINT: Test frequency.unit_str instead of frequency string.
TST: Fix history unittest.