Added slugs method and tests