Fix Integer validator and add tests

Signed-off-by: Bert Hajee <hajee@moretIA.com>