Fix JSHint issues in tests