Added tests for distance2outer