added timeout to the connection-test