Check patterns only on master request
Fix tests and add one on sub_request
Merge pull request #9 from M6Web/fix-listener

Check patterns only on master request