api tests: update to reflect changes in /directory/ route management
api tests: update to reflect changes in /directory/ route management

SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui