Make object state immutable by passing host to constructor
Replaced mock HTTP server with a mock HTTP transport object