Fix JSHint complaints for tests