added constructor method for mock http client
added test for http mock struct