added test case for http