Blocks and gradient testing