write pagination tests