fix issue with MessagePatternFilter in tests.