Added XMLFactory and XMLFactoryTest Unit Tests