add test for hostname

Signed-off-by: Ken Barber <ken@bob.sh>