added test for isHttpSuccess