fix jshint warnings
Merge pull request #684 from mucaho/fix_lint_warns

fix jshint warnings in tests