change rules, add tests
Merge pull request #375 from mimmi20/issue-370

Fixes #370
Merge branch 'master' of https://github.com/browscap/browscap into check-onmacosx