refine test program to only move toward closest tracks