Added tests for PatternBasedFilterBuilder.