Assert the types of filter/filtersLib correctly.