Fix OSGi unit test, add xml dependency