Improved tests

- Avoid server.serve_forever(1) (blocks on Linux)