fixed bug in signature verification
fixed unit tests