xor test for network