Adapt new page.parse api for tests