Added XOR test case to main