fixed copyright, added an XOR test