Make the tests pass even if port 8080 is currently busy
Make polling work reliably

Fixes https://github.com/mgedmin/restview/issues/1