Add XOR gate to tests