abstracted test client's hostname config to an argument