Additional tests and test improvements

This adds some (very basic) functional xliff2po tests, and improves code style in some of my earlier translate testing work.