added new function slug and tests