Fix `addBlock` action in tests.