More stable parsing Host header and test updated