ISPN-3967 Make the OSGi tests run only in a specific profile

* plus a little cleanup