Fixed JSHint warnings
Made test for XML serializer