detect the right root classloader for more cases
* added a test case where thread-context-classloader did not load jruby and ScriptingContainer just works
* added same test case for JRubyEngineFactory which works without commit b0a9744549b1bbe94667f177b90eb7a38a1ade7e
* added two more edge cases which would fail normally for JRubyEngineFactory