Pr/test auto page

Solves #85 but also fixes AutoPage that wasn't working at all.
Took the chance to add a pair of tests.