Fixed some Tests. Renamed headerFields to allHeaders to be consistent with Apple method