test on poll function