added test for pagination in GET /posts/*