Fix OSGi test