[HttpFoundation] Fixes unit test following the recent update