Fix netcat related tests