node/tests: In test-encode-decode-data dumpData, check if the signature is Sha256WithRsaSignature.
Signature: In the default constructor, set the signature to null, not Buffer(0);
security: In Identitymanager.signByCertificate, iniitally set an empty signature so that we can encode.