fix #5 test for class Integer failed on Safari/IE

use global.isFinite instead of Number.isFinite