Impruving man and min integer by adding method testInteger