unit tests for pageinfo()

required before FS#2415 can be accepted.