Fix the grammar for Signature and add tests for signatures.