Rewrote XOR test class