test if value is an integer or not