Fix JSHint in test helper