simplify helper functions getPageFromParam() and getFilterFromParam()
Add unit tests for getFilterFromParam()