separated attribute matching and added tests
Merge pull request #9 from haxecocktail/attributes-matcher

separated attribute matching and added tests