Fix for LibJars bug 2799847

We werent passing the LibJars list to the underlying SDK and now fixed
that. Augmented a test case as well.