Fix logic in certificate expiration test.
Updated SystemMetadata to set fields to NA.

Previously, fields were set to NULL, which led to errors on serialization.  Now serialization works even with minimally constructed objects.