ecdsa: adds test for detGenK loop