Added a method to test for matches, as well as a test case. Currently, this doesn't match
descendant selectors. I need to think about how to handle that one.