Add validation tests to python bindings.

R=sdefresne@chromium.org

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