Fix jshint warnings in test spec