fix a bug with int type validator
a bunch of tests for the type validators