misc/test-hooks: run api server on port 5000
misc/test-hooks: check for failures in nc call