removed deprecated unittest api use, updated and locked down dependencies

R=alanknight@google.com

Review URL: https://codereview.chromium.org//170893002