Added test cases for converting slugs - updated functionality to ignore hyphens already present in slugs.