filter, test: sort filters before asserting

existing filters and hardcoded list doesn't match because
they do not have the same order. sort both before testing.

the deprecated assertEquals have been replaced with assertEqual.

tested on python 3.4.