Test-Time Adaptation via Self-Training with Nearest Neighbor Information