test: add test cases about filter (#15)