Testing hash generation and exchange