Add javadoc and tests for Signature.