PRD-3281: Fixed the backend and updated the unit tests for the sugar urls