Fix test failure in osgi itests