Added test for createElementNS.
Make set-properties nil safe.