compute more useful page ranges; improved test-suite