Issue #1: Added test for signing with uid, reorganised tests slightly.
Closes #1: Omitted shell_quote call on keyid in sign_file.