fixed optional args in helpers/pollUntil

fixed a rogue conditional to support documented optional args in helpers/pollUntil and added a test to ensure its continued support.