add caption to abstractBlock, with tests.