Paginator

Added tests for paginator