fixed for  #7941, mising rpm and fosslib libraries when do the pkgagent unit testing.