add unit test for Signature