Extra assert tests.

This errors would be detected later anyway, but this having them fail
here is less confusing.

Change-Id: I44a90ae81e32a60b6f4968ee309e16f3dab16329