Update the API url to match the one from the UI

Fix the unit-tests accordingly