Add test for duplicate keypair