Add test for Endpoint::respond