Unittests for web request