Endpoints: better tests