test polling method