Fixed http request in test_poll function