Tweak UserAgentTest
Merge pull request #318 from jenssegers/master

Tweak UserAgentTest
Adding code climate.