Fixes low-hanging jshint fruit in test/

References #705
Merge pull request #822 from kaeff/705-jshint

Fix jshint warning in unit tests