added unittests for http