Add new test for indirect parent matching
Improve code thanks to comments, and add new test
Change variable name
Merge pull request #2 from doctormo/master

Add new test for indirect parent matching