Add Junit tests about filter