added text filter and tests