Changed host to be a def not a value (as it returns an instance of a class that gets modified. Also added second test to show the http shutdown problem