Add tests for poll subs functions.

Signed-off-by: Norv <a.w.norv@gmail.com>