finish a block in tests