Fix invalid content-length headers in tests