Added tests for compute_distance2inner