Fixed JSHint error in test script