Fix issues with itests of karaf