Rewrite post pagination tests