[SECURITY-49] a9aff08 weakened the existing test; restoring it and introducing a separate test.
[SECURITY-54] Realistic test of connection using -secret as from a service installation.