Add more test on filter algorithm