fixing endpoint and test based on romain's feedback
2 files changed