add a test for the page_list macro and fix it