Fixed JSHint errors in test scripts