Moved XoringOutputStream out of test to main