CDK-177: Adding constraints check to FS read path.

This required also updating TestSimpleView because the user_id type is a
long, but the test was written with an int and failing.