add test of poll directive