Added more unit tests to HttpRequestEngine