use test_mapping.json in filter_test
fix tag matching for elems with __any__ and exact matches

this allows you to have a table with mapping foo=__any__ and another
one with foo=bar and an element with foo=bar will be inserted in
both tables