Added a test to periodic_mindist