turned xor demo into test