simpler integer validation test