moved Slugify to Entities to break reference from Api to Core
cleaned up some code
renamed some test cases