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.
Merge pull request #2709 from 1mahesh/master

Fix for LibJars bug 2799847