#502: add new tests
Merge pull request #505 from mimmi20/issue-502

Fixes #502: add new tests
Merge pull request #504 from mimmi20/issue-498

Fixes #498
Merge branch 'master' of https://github.com/browscap/browscap into test-with-refactoring