Added tests for pagenation