Upgrade the dependency lib version and fix the unit test issues.

Upgrade the dependency lib version and fix the unit test issues.