Added a test to make sure ECDSA.sign returns nil if r is 0.