Finish tests for writeSignedAP