Assert page ranges in mapping functions.