[tests] fix test using undefined url
[tests] fix tests set correct host headers