Add tests for page cursor