add test for polling