Add test and fix for Host request header

Fixes #52