Add an AKE test

Check DH pubkey equality before skipping key replacement.
Provided by @osnr in #47.