Add tests for host names

Signed-off-by: Sven Strickroth <email@cs-ware.de>