Better testing for integer value