Check Number function and test Cases