REFACTOR using a one-line curl for empty payload cases in empty_payloads.test