httpurl unit test revised