Finish tests for writeUnsignedAP