Add unit tests for getFilterFromParam()