Get integer with test