Testing pagination api