tests: In test_encode_decode_data dumpData(), need to check if getFinalBlockID is null.