tests for paginate helper