How about testing the output? Seems like the ultimate test. If the output's still good, I guess the rewrite didn't hurt.