adding testcases for uncovered lines in request builder
minor refactoring for classloader