fixing spec for poll plugin