finish filter in test.py