Test the HashFromBlock class