Endpoint error tests