Add tests for paging support

Add a few tests for paging feature.