Remove functools from filter testcases for python2.4 compatibility