[HttpFoundation] fixed some unit tests
Merge branch '2.2' into 2.3

* 2.2:
  [HttpFoundation] fixed some unit tests
Merge branch '2.3'

* 2.3:
  [HttpFoundation] fixed some unit tests