fixed signature failure problem in verifyAndDecrypt, added a new test to handle bad signatures