Added custom filter for paging and added tests for it.