fix python tests
fix bug with invalid signature size (should not be less than signatureLength())
Merge pull request #2914 from alalek:fix2.4