test multiple_signatures

The test case you helped me get in order. If merging does not work, I think you can just cherry-pick 61ed087e8107a8b43efd7f484b59ecc281686eb5.

/Fredrik