Fix UserAgent regular expression since `assertScriptExecuted()` fails on Ubuntu
Fix `test_toString()` failure in log.test.js
Merge pull request #5 from xKerman/fix-test-failure

Fix test failure on Ubuntu