Add unit tests for appendSignature(). Bug: T276612 Change-Id: Ic44c52f4d54492e092f9396c626380e2637b6f0f