Started adding tests, tweak PageRange class.
Added tests, added type checking.