The hash should be calculated over both private and public key, as the reason for the test is guaranteeing that we have matching keypairs.