/testforblocks won't work.
I had a small clock doing a /testforblocks command running, and when all of the blocks were exactly the same, it said that whatever block I was trying to check was air, constantly. I had a cauldron at some x y z, and the game still registered it's tile as air.