test pagination and remove order when count (for PostgreSQL).