added polls test; added wait helper