fix pagination and date tests