Excluding several tests with --test produces unexpected result

This is a fix for https://bugs.launchpad.net/zope.testrunner/+bug/1160965

Unit-tests can be added for the ``build_filtering_func`` function, but I don't really know where they belong to.