Added unit tests for the NearestNeighborCollector class.