Use Number.MAX_SAFE_INTEGER when available

Also fix a typo and remove an unnecessary part of the tests.
Do not skip holes