pagination for queries and discoveries complete with unit tests