Unit Tests

Adding some unit tests of the XML and string serialization