Add asserts to test

R=arv
BUG=

Review URL: https://codereview.appspot.com/13628043