test extension key registration and extension key transfer