DRY up slugify tests.