Server client key exchange test function