move testing to tests/test_poll.py for nosetests