Add tests for integer validator