Test: libcrmcommon: Add unit tests for pcmk__xe_add_node.
Also, make it assert if passed NULL for the xml node. The functions it
calls perform this check already, but we might as well check again
higher up and save a couple function calls. Plus, this allows us to add
a test for making sure it asserts properly.