test-connections: more accurate ok/error messages
test-connections: allow to run on remote server too (for testing)