tests: Add a socket timeout