Add tests for autopage