Testing the integrity of some cavity -- the Cauchy problem and the range test