Add unit testing for server based pagination