Fix various integration tests

See detailed description in each individual commit for more info.
FYI, confusing name - how could it be anything other that a _Java_ classloader context? Of course the other type is _Osgi_ which makes sense, but a bit of Javadoc on these classes would help.