Fix some JSHint issues in test/utils_spec.js