Paging for dynamic tables
Added an improved tests