Fixing jshint errors in test spec.