add tests for replace filter