Refactoring and adding tests

- Paging -> PagingMetadata
- Funational tests for Paging