[http] Fix string/None comparison with int while in test