Adding tests cases to createSlug function