Added flatMap to paging
Added test for the paging flatMaps