auto-create $host when needed
fixed some overlapping tests