Added xor TEST with sparse input