test_monitoring: use ephemeral port, and verify on_accepted