fix content unit test and play around with jasmine spies
fix xml config impl and tests