Added tests.
Added methods checkNumber and checkRange.