Testing the cavityB operator