expand test
reduce loglevel on socket errors and fix return code