add a test of the response of a custom endpoint