Testing setFilter method