add tests for paginations