fixed typo
#3252 tidied up the test case and fixed up polling