Tests for paginate.