unit tests for filter topic code matching