Added hasNumber method and tests