Test slugify function