The test that fails converts a fixed OpenFlow message, expressed as hex bytes, into text. Your search-and-replace did not change the hex bytes that represent "Nicira Networks" but it did change the expected output. I suggest that you fix up the hex bytes so that they spell out the new expected output.